package com.yugao.fintech.antelope.pay.client.constants;

import com.yugao.fintech.framework.cache.core.key.ICacheKey;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.concurrent.TimeUnit;


@Getter
@AllArgsConstructor
public enum PayCacheKey implements ICacheKey {
    /**
     * 支付全局锁, 这里的时间没有用到 <br/>
     * arg1: 订单号 <br/>
     */
    PAY_GLOBAL_LOCK("pay_client_global_lock:%s", 24, TimeUnit.HOURS),
    ;
    private final String key;
    private final int expire;
    private final TimeUnit unit;
}
